/**
 * Created by Administrator on 2017/6/8.
 */
import {fetch} from 'api/fetch'
export const callAuthCode = (userPhone) => {
  return fetch({
    url: '/api/worker/auth/code',
    method: 'post',
    data: ({
      userPhone: userPhone,
    }),
  })
}
export const callAuthLogin = (userPhone,verificationCode) => {
  return fetch({
    url: '/api/worker/auth/login',
    method: 'post',
    data: {
      userPhone: userPhone,
      verificationCode: verificationCode
    }
  })
}
export const callAuthLogout= () => {
  return fetch({
    url: '/api/worker/auth/logout',
    method: 'post',
  })
}